<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>意达设计</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../css/dealer.css"/>
</head>
<body class="body">

<!-- header -->
<div class="pageheader"><a href="javascript:void(0);" onclick="api.closeWin();" class="return"></a><span>交易详情</span></div>

<!-- contact -->
<div class="pad">
	<div class="yuesmon">
		<p id='money'>-7032.00</p>
		<span>订单金额</span>
	</div>
	<div class="persli persliToo"><span>创建时间</span><p id='time'>018-09-12  15:32:18</p></div>
	<div class="persli persliToo" style="border-bottom: 1px solid #e5e5e5;"><span>订单号</span><p id='orderno'></p></div>
	<div class="persli persliToo"><span>商品名称</span><p id='name'>酒神包真皮涂鸦单肩斜跨链条女包</p></div>
	<div class="persli persliToo"><span>订购数量</span><p id='num'>9</p></div>
	<div class="persli persliToo"><span>选择属性</span><p id='color'>红色</p></div>
</div>



</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="../script/adaptive.js"></script>
<script type="text/javascript" src="../script/tabs.js"></script>
<script type="text/javascript">
    window['adaptive'].desinWidth = 750;
    window['adaptive'].baseFont = 28;
    window['adaptive'].maxWidth = 750;
    window['adaptive'].init();
    apiready = function () {
        $api.fixStatusBar($api.dom('.header'));
        api.addEventListener({
            name: 'keyback'
        }, function(ret, err){
            api.closeWidget();
        });
        api.showProgress();

        var para=api.pageParam;
    

    	var  p={token:token,id:para.id};

        toDoRequest();

      
        function toDoRequest(){
			api.ajax({
	            url: webSiteUrl+'/app/user/orderdetail',
	            method: 'post',
	            data: {
	                values:p,
	            }
	        }, function(ret, err) {
	            api.hideProgress();
	            
	            if(ret.code==200){
	                
	                //alert(ret.msg);return;
	              
	               
	                var tj=ret.data;
	    			$('#money').html(tj.money);
	    			$('#time').html(tj.time);
	    			$('#name').html(tj.name);
	    			$('#orderno').html(tj.orderno);
	    			$('#color').html(tj.color);
	    			$('#num').html(tj.num);

	                		
	            }else{
	                        //alert(ret.msg)
	                    }

			});
    	}

    


  };
</script>

</html>
